Skip to content

Conversation

@basnijholt
Copy link
Owner

Summary

  • Escape HTML comment markers (<!-- and -->) in the regex pattern to prevent markdown parsers from breaking
  • Remove orphaned content that was duplicated outside OUTPUT blocks
  • Clean up the template structure

Problem

The regex pattern in the CODE block contained literal <!-- SECTION:github-actions:START -->.*?<!-- SECTION:github-actions:END --> which has nested <!-- and --> inside the markdown comment. This caused the markdown renderer to interpret the first --> as ending the comment, making the rest of the pattern appear as visible text on the docs site.

Solution

Break up the string using concatenation so --> doesn't appear literally:

start_marker = "<!-" + "- SECTION:github-actions:START -" + "->"
end_marker = "<!-" + "- SECTION:github-actions:END -" + "->"
pattern = start_marker + ".*?" + end_marker

Test plan

  • Verified docs_gen.py --verify passes
  • Verified docs_gen.py --docs-only generates correct output

The previous commit accidentally included generated content that was
outside the proper OUTPUT sections. This commit removes the orphaned
markdown examples and keeps only the template structure with PLACEHOLDER
text that gets replaced during CI builds.
@basnijholt basnijholt merged commit a951d1e into main Jan 14, 2026
14 checks passed
@basnijholt basnijholt deleted the fix/examples-template branch January 14, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants